PROJECT(KatanaGMM)

cmake_minimum_required(VERSION 2.4)

set(CMAKE_VERBOSE_MAKEFILE false)
set(CMAKE_BUILD_TYPE DEBUG)


set( objs  src/IK.cpp 
           src/Gesture.cpp 
	   src/getch.cpp 
	   src/SplineMovement.cpp
	   src/utils.cpp
	   src/offset.cpp)

FIND_PACKAGE(GMR REQUIRED)
FIND_PACKAGE(MATHLIB REQUIRED)
FIND_PACKAGE(LibXml2 REQUIRED) # for storing IK models .. 

SET(KNI_DIR CACHE "location of KNI" /opt/KNI_3.9.1/)

link_directories( ${KNI_DIR}/lib/linux/ )

include_directories(include ${MATHLIB_INCLUDES} ${GMR_INCLUDES} ${LIBXML2_INCLUDE_DIR} ${KNI_DIR}/include)

add_executable(main ${objs} src/main.cpp)

target_link_libraries(main ${GMR_LIBRARIES} ${MATHLIB_LIBRARIES} ${LIBXML2_LIBRARIES}  KNI_LM KNI_InvKin KNIBase pthread vga)

add_executable(debug ${objs} src/debug.cpp)

target_link_libraries(debug ${GMR_LIBRARIES} ${MATHLIB_LIBRARIES} ${LIBXML2_LIBRARIES}  KNI_LM KNI_InvKin KNIBase pthread vga)
